Deque Properties

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Syntax

C#
[SerializableAttribute]
public class Deque<T>
Visual Basic (Declaration)
<SerializableAttribute> _
Public Class Deque(Of T)
Visual C++
[SerializableAttribute]
generic<typename T>
public ref class Deque

Type Parameters

T

The type exposes the following properties.

Public Properties

  NameDescription
Public propertyCapacity
Gets or sets the capacity of the Deque. The Capacity is the number of items that this Deque can hold without expanding its internal buffer. Since Deque will automatically expand its buffer when necessary, in almost all cases it is unnecessary to worry about the capacity. However, if it is known that a Deque will contain exactly 1000 items eventually, it can slightly improve efficiency to set the capacity to 1000 up front, so that the Deque does not have to expand automatically.
Public propertyCount
Gets the number of items currently stored in the Deque. The last item in the Deque has index Count-1.
(Overrides ListBase<(Of <T>)>..::Count.)
Public propertyItem
Gets or sets an item at a particular index in the Deque.
(Overrides ListBase<(Of <T>)>..::Item[([Int32])].)

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate propertyICollection<(Of <T>)>..::IsReadOnly (Inherited from CollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyICollection..::IsSynchronized
Indicates whether the collection is synchronized.
(Inherited from CollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyICollection..::SyncRoot
Indicates the synchronization object for this collection.
(Inherited from CollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyIList..::IsFixedSize
Returns whether the list is a fixed size. This implementation always returns false.
(Inherited from ListBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyIList..::IsReadOnly
Returns whether the list is read only. This implementation returns the value from ICollection<T>.IsReadOnly, which is by default, false.
(Inherited from ListBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyIList..::Item
Gets or sets the value at a particular index in the list.
(Inherited from ListBase<(Of <T>)>.)

See Also